package cn.school.student.entity.vo;

import cn.school.student.convert.StudentInfoExcelConvert;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;

@Data
public class StudentInfoExcel {
    @ExcelProperty("编号")
    @ColumnWidth(50)
    private Long id;

    @ExcelProperty("姓名")
    @ColumnWidth(50)
    private String name;

    @ExcelProperty("电话")
    @ColumnWidth(50)
    private String phone;

    @ExcelProperty("班级名称")
    @ColumnWidth(50)
    private String className;

    @ExcelProperty("家长电话")
    @ColumnWidth(50)
    private String guardianPhoneNumber;

    @ExcelProperty(value = "家长是否授权公众号",converter = StudentInfoExcelConvert.class)
    @ColumnWidth(50)
    private String guardianOfficialOpenId;
}
